//
//  HapkiOfflineController.swift
//  I.S.A.P WT
//
//  Created by Илья Проскурнев on 02.06.2021.
//  Copyright © 2021 Илья Проскурнев. All rights reserved.
//
import UIKit

class HapkiOfflineController: UIViewController {
    
    var freestyle = 0
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationItem.setHidesBackButton(true, animated: true)
        // Do any additional setup after loading the view, typically from a nib.
        
    }
    
    

    @IBAction func houseBack(_ sender: Any) {
        let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
        let nextViewController = storyBoard.instantiateViewController(withIdentifier: "mainController") as! MainController
        self.navigationController?.pushViewController(nextViewController, animated: true)
    }
    
    @IBAction func freeweapons(_ sender: Any) {
        self.freestyle = 1
    }
    
    @IBAction func pairfreehosinsul(_ sender: Any) {
        self.freestyle = 2
    }
    @IBAction func demoteam(_ sender: Any) {
        self.freestyle = 3
    }
    override func prepare (for segue: UIStoryboardSegue, sender: Any?) {
        let presentationController: OfflineHapkidoController = segue.destination as! OfflineHapkidoController
        presentationController.freestyle = self.freestyle

    }
    
}
